package com.alibaba.www.controller;

import com.alibaba.www.config.FeignConfig;
import com.alibaba.www.config.FeignRequestInterceptor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;

@Service
@FeignClient(name="nacos-provider",fallback = OpenFeignFallback.class,
        configuration = {FeignRequestInterceptor.class, FeignConfig.class})
public interface OpenFeignService {

    @GetMapping(value = "/info")
    public String getInfo();
}
